import java.util.Set;

import com.ht.common.core.web.domain.BaseEntity;
import com.ht.system.api.dto.BaseFieldInfoDto;
import com.ht.system.domain.SysUser;

public class GstDemo {

	public static void main(String[] args) {
		gset(BaseFieldInfoDto.class,"bd","item");
	}


	private static void gset(Class clz,String setObj,String getObj) {
		Set<String> befls=	cn.hutool.core.util.ClassUtil.getDeclaredMethodNames(BaseEntity.class);
		Set<String> fls=cn.hutool.core.util.ClassUtil.getDeclaredMethodNames(clz);
		if(com.ht.common.core.utils.StringUtils.isNotEmpty(fls)){
			for (String method : fls) {
				if(method.startsWith("set")){
					if(!befls.contains(method)){
						String mgt=getObj+".g"+method.substring(1)+"()";
						System.out.println(setObj+"."+method+"("+mgt+");");
						//System.out.println(setObj+"."+method+"(\"\");");
					}
				}
			}
		}
	}

}
